package org.fangzz.cameramgr.cameramonitor.dto;

public class ResultCode {

    String message;
    String code;
    boolean status;

    public static ResultCode result(String message,String code,boolean status){
        ResultCode resultCode  = new ResultCode();
        resultCode.setCode(code);
        resultCode.setMessage(message);
        resultCode.setStatus(status);
        return resultCode;
    }

    public static ResultCode error(String message,String code,boolean status){
        ResultCode resultCode  = new ResultCode();
        resultCode.setCode(code);
        resultCode.setMessage(message);
        resultCode.setStatus(status);
        return resultCode;
    }


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }
}
